﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GtsServer.Common;
using GtsServer.DAL;
using GtsServer.Model;
using System.Data;

namespace GtsServer.Manage.Controller {
    public class PlsettingController {
        PLSettingDAL dal = new PLSettingDAL();
        public List<PLSetting> GetList(string strWhere = "") {
            List<PLSetting> list = new List<PLSetting>();
            DataSet ds = dal.GetList(strWhere);
            list = IListDataSet.DataSetToIList<PLSetting>(ds, 0).ToList();
            return list;
        }
        public int Add(PLSetting models) {
            return dal.Add(models);
        }
        public bool Update(PLSetting model) {
            return dal.Update(model);
        }
    }
}
